home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
porttool.zoo
/
cat.man
< prev
next >
Wrap
Text File
|
1992-12-03
|
3KB
|
74 lines
NNAAMMEE
cat - concatenate and display files
SSYYNNOOPPSSIISS
ccaatt [ -behnstuv ] [ _f_i_l_e_n_a_m_e ]...
DDEESSCCRRIIPPTTIIOONN
ccaatt reads a file and writes it to the standard output. If more
than one file is given, the files are concatenated and written in
sequence to the standard output. If a file name is not given, or a
minus sign (-) is given as a file name, ccaatt reads from the standard
input.
OOPPTTIIOONNSS
The options may be specified separately.
--bb Omits line numbers from blank lines when used with the --nn
option.
--ee When given with --vv, displays a dollar sign ($) at the end of
each line.
--hh Display a longer help message.
--nn Displays the output lines numbered sequentially from 1.
--ss Squeezes multiple blank lines into one line.
--tt When specified with --vv, displays tab characters as ^I.
--uu Specifies unbuffered output. (Supported but not implemented for
MS-DOS and OS/2).
--vv Displays nonprinting characters. For example, the delete
character (octal 0177) prints as ^? and non-ASCII characters
(with the high bit set) are printed as M- followed by the
character of the low 7 bits.
EEXXAAMMPPLLEESS
C:> _c_a_t_ _n_e_w_s
ccaatt writes the file named _n_e_w_s to the standard output.
C:> _c_a_t_ _c_u_p_1_ _c_u_p_2_ _>_ _c_u_p_3
ccaatt concatenates the first two files and places the result in the
third.
C:> _c_a_t_ _-_s_ _l_o_n_g_ _>_ _s_h_o_r_t
The following are the contents of _l_o_n_g and _s_h_o_r_t
_l_o_n_g: _s_h_o_r_t:
this is this is
a file
a file
ccaatt _-_s squeezed the two blank lines into one blank line.
SSPPEECCIIAALL CCOONNSSIIDDEERRAATTIIOONNSS
When more than one file name is given on the command line, ccaatt
prints the contents of the files without indicating where one file
ends and another file begins.
Command formats such as _c_a_t_ _f_i_l_e_1_ _f_i_l_e_2_ _>_f_i_l_e_1 and
_c_a_t_ _f_i_l_e_1_ _f_i_l_e_2_ _>_f_i_l_e_2 destroy the input files before reading them.
SSEEEE AALLSSOO
cp(1), more(1), pr(1), tail(1)
CCooppyyrriigghhtt ((cc)) 11999922 FFrraannkk EE.. WWhhaalleeyy AAllll rriigghhttss rreesseerrvveedd